←Select platform

InsertItem Method

Summary
Inserts an item into the LeadCollection<T> at the specified index.
Syntax
C#
C++/CLI
Python
protected override void InsertItem( 
   int index, 
   T item 
) 
protected: 
void InsertItem( 
   int index, 
   T^ item 
) override 
def InsertItem(self,index,item): 

Parameters

index The 0-based index at which  item should be inserted.

item The object to insert. The value can be null for reference types.

Remarks

InsertItem is meant to be overridden in a derived class. For a public method to insert an item in the LeadCollection<T>, see Insert.

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

If  index is equal to Count, item is added to the end of LeadCollection<T>.

This method raises the CollectionChanged event with Add action.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.